import { scene, footer } from "./components/3d.js";

var geometry = new THREE.SphereGeometry(100, 25, 25);

//点材质
// var material = new THREE.PointsMaterial({
//   color: 0x0000ff, //颜色
//   size: 3, //点渲染尺寸
// });
// var point = new THREE.Points(geometry, material);
// scene.add(point);

//线材质
// var material = new THREE.LineBasicMaterial({
//   color: 0x0000ff,
// });
// var line = new THREE.Line(geometry, material);
// scene.add(line);

//虚线材质
// var material = new THREE.LineDashedMaterial({
//   color: 0x0000ff,
//   dashSize: 10, //显示线段的大小。默认为3。
//   gapSize: 5, //间隙的大小。默认为1
// });
// var line = new THREE.Line(geometry, material);
// line.computeLineDistances();
// scene.add(line);

//高光网格材质
var material = new THREE.MeshPhongMaterial({
  color: 0xff0000,
  specular: 0x444444, //高光部分的颜色
  shininess: 20, //高光部分的亮度，默认30
});
var line = new THREE.Line(geometry, material);
scene.add(line);

footer();
